﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Text;
using System.Threading.Tasks;

namespace DBLibrary.Model.pojo
{
    public class BrachStatus  //分站状态表
    {
        private int _BrachAdressId;                 //[分站地址]
        private DateTime _Time;                     //[时间]
        private int _status;                        //[分站状态]
        private int _Value;                         //[数值]
        private int _isUpload;                      //[上传否]
        private int _isUpload2;                     //[上传否2]
        private int _isUpload3;                     //[上传否3]
        private int _isUpload4;                     //[上传否4]

        public int BrachAdressId { get => _BrachAdressId; set => _BrachAdressId = value; }
        public DateTime Time { get => _Time; set => _Time = value; }
        public int Status { get => _status; set => _status = value; }
        public int Value { get => _Value; set => _Value = value; }
        public int IsUpload { get => _isUpload; set => _isUpload = value; }
        public int IsUpload2 { get => _isUpload2; set => _isUpload2 = value; }
        public int IsUpload3 { get => _isUpload3; set => _isUpload3 = value; }
        public int IsUpload4 { get => _isUpload4; set => _isUpload4 = value; }
        public string Action
        {
            get
            {
                if (_status == 1)
                    return "正常";
                else
                    return "断线";
            }
        }
    }
}
